/**
 * 功能:TK_IN_WAREHOUSE Dao类
 * 开发人员:yaren
 * 创建时间:2012/4/22 12:15:56
 */
package com.towker.frame.dao.warehouse;

import org.springframework.stereotype.Repository;
import com.towker.core.db.BaseDao;
import com.towker.frame.model.warehouse.InWarehouse;

@Repository
@SuppressWarnings("unchecked")
public class InWarehouseDao extends BaseDao<InWarehouse, Long>
{
	@Override
	public Class getEntityClass()
	{
		return InWarehouse.class;
	}
	
	/**
	 * 获取最后一个入仓单号
	 * @return
	 */
	public String getLastInCode(){
		return (String)getSqlSessionTemplate().selectOne(getIbatisMapperNamespace()+".getLastInCode", null);
	}
	
}